

<%@ page import="java.util.List" language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!-- saved from url=(0060)http://202.116.174.108:8080/opac/item.php?marc_no=0000722789 -->
<script type="text/javascript">  
 
    function get(){  
   
   	 var value='';  
     var radio = document.getElementsByName("check");  
     var t=0;
     for(var i = 0;i<radio.length;i++)  
     {  
         if(radio[i].checked==true)  
         {t=1;
        	 value = radio[i].value;  
         break;}  
     }  
    if(t==0){
    	alert("请至少选择一本书进行预约!");
    }else{
     /*window.location.href="appointment.action?value="+value;*/
    
     
     
     
     
	 <c:if test="${not empty user.name}"> 
	 
	 window.location.href="appointment.action?book_id="+value;

	</c:if>

	 <c:if test="${empty user.name}"> 

	 
	 window.location.href="../user/tologin.action";

	</c:if>
     
     
     
     
    }
     
      /*  $("#appointment").click(function() {
			$("#appointment_form").submit(); 
			 alert("Submitted"); 
		}); */
    }  
     
</script>
<html>
<head>
<meta charset=UTF-8">

<title>图书检索系统</title>
<link type="text/css" rel="stylesheet"
	href="../resources/bookitem/style.css">
<link type="text/css" rel="stylesheet"
	href="../resources/bookitem/mylib.css">
<link type="text/css" rel="stylesheet"
	href="../resources/bookitem/jquery-ui-1.8.13.custom.css">
<script type="text/javascript"
	src="../resources/bookitem/jquery.1.7.1.min.js.下载"></script>
<script type="text/javascript"
	src="../resources/bookitem/jquery-ui-1.8.13.custom.min.js.下载"></script>
<script type="text/javascript"
	src="../resources/bookitem/highlighter.js.下载"></script>
<script type="text/javascript"
	src="../resources/bookitem/Zkcjh208JD823XC.js.下载"></script>
<script type="text/javascript" id="script1034662"
	src="../resources/bookitem/iso_ifc_Inopac_GetList.ashx"></script>
</head>
<body>
	<link href="../resources/bookitem/jiathis_share.css" rel="stylesheet"
		type="text/css">
	<iframe frameborder="0"
		style="position: absolute; display: none; opacity: 0;"
		src="../resources/bookitem/saved_resource.html"></iframe>
	<div class="jiathis_style"
		style="position: absolute; z-index: 1000000000; display: none; top: 50%; left: 50%; overflow: auto;"></div>
	<div class="jiathis_style"
		style="position: absolute; z-index: 1000000000; display: none; overflow: auto;"></div>
	<iframe frameborder="0"
		src="../resources/bookitem/jiathis_utility.html"
		style="display: none;"></iframe>
	<div id="header_opac">
		<h1 class="header_opac_img">
			<div class="header_opac_logo">
				图书检索系统<br>
				<p>Online Book Retrieval System</p>

			</div>
		</h1>
		<div class="header_right header_right_top">
			<p class="header_right_font"></p>
			<p style="margin-top: 60px;" class="header_right_font">
				<font color="blue">${user.name }</font> <strong><a
					href="../user/logout.action" style="color: #ff0000;">注销</a></strong>
			</p>
		</div>
	</div>
	<div id="menubar">
		<ul id="menu_top">
			<li><a class="menu_top_on" style="color: #6C5B23;"
				href="http://202.116.174.108:8080/opac/search.php" target="_self">书目检索</a></li>

			<li><a href="mylibrary.action" target="_self">我的图书馆</a></li>
			<div class="clear"></div>
		</ul>
	</div>
	<div id="submenu">


		<div class="clear"></div>
	</div>


	﻿
	<script type="text/javascript"
		src="../resources/bookitem/inopac_scau.js.下载" charset="utf-8"></script>
	<script src="../resources/bookitem/1.js.下载" type="text/javascript"
		charset="utf-8"></script>
	<script language="JavaScript" type="text/javascript">
	$(function(){
		$('#tabs1').tabs({
			spinner: '加载中...' 
		});
		$('#tabs2').tabs({
			spinner: '加载中...' 
		});
		
		$("#accordion").accordion({
	      heightStyle: "fill", active:false,collapisable:true
	    });
		
		$("#showMoreAnchor").click(function(){
			$("#book_info dl:gt(99)").show();
			$("#showMoreAnchor").hide();
		});
		
		if($("#book_info dl").length > 99 + 1){
			$("#book_info dl:gt(99)").hide();
			$("#showMoreAnchor").show();
		} else {
			$("#showMoreAnchor").hide();
		}
			
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
		$( "#dialog-form" ).dialog({
			autoOpen: false,
			modal: true 
		});
		$( "#dialog-fav" ).dialog({
			autoOpen: false,
			modal: true ,
		      buttons: {
		        "确定": function() {
	        	  $("#favMsg").load("../reader/book_shelf_ajax_addbook.php?classid=" + $("#favSel option:selected").val() + "&marc_no=0000722789&time=" + new Date().getTime());	
		          $(this).dialog( "close" );
		        },
		        "取消": function() {
		          $( this ).dialog( "close" );
		        }
		      }
		});
				
			
		
		$("#spanItemMore").click(function(){
			$("#item tr:gt(30)").show();
			$("#spanItemMore").hide();
		});
		
		if($("#item tr").length > 30 + 1){
			$("#item tr:gt(30)").hide();
			$("#spanItemMore").show();
		} else {
			$("#spanItemMore").hide();
		}
		 
	});
	
</script>
	<style>
#accordion-resizer {
	padding: 10px;
	width: 100%;
	height: 220px;
}
</style>

	<div id="content_item">

		<div id="tabs1" style="margin: 10px auto;"
			class="ui-tabs ui-widget ui-widget-content ui-corner-all">
			<ul
				class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
				<li
					class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a
					href="http://202.116.174.108:8080/opac/item.php?marc_no=0000722789#tabs-1"
					title="intro">书目信息</a></li>

			</ul>
			<div id="tabs-1"
				class="tab_article ui-tabs-panel ui-widget-content ui-corner-bottom">
				<div class="book_article">
					<div id="book_info">
						<div class="book_article">
							<div id="book_pic">
								<img id="book_img" width="105" height="155"
									style="border: 1px solid #efefef;"
									src="../resources/bookitem/nobook.jpg">
							</div>
							<div id="item_detail" style="float: left; width: 80%;">
								<c:forEach items="${bookInfo}" var="i" begin="0" end="0">

									<dl class="booklist">
										<dt>书名:</dt>
										<dd>${i.bookName}</dd>
									</dl>
									<dl class="booklist">
										<dt>作者:</dt>
										<dd>${i.author}</dd>
									</dl>
									<dl class="booklist">
										<dt>语言:</dt>
										<dd>${i.language }</dd>
									</dl>
									<dl class="booklist">
										<dt>出版社:</dt>
										<dd>${i.publish}</dd>
									</dl>

									<dl class="booklist">
										<dt>ISBN:</dt>
										<dd>${i.isbn }</dd>
									</dl>
									<dl class="booklist">
										<dt>标签:</dt>
										<dd>${i.tag }</dd>
									</dl>
									<dl class="booklist">
										<dt>索书号:</dt>
										<dd>${i.callno }</dd>
									</dl>
								</c:forEach>

								<div style="text-align: left; color: blue; display: none;"
									id="showMoreAnchor">
									<strong>全部MARC细节信息&gt;&gt;</strong>
								</div>
							</div>

							<div class="clear"></div>
						</div>
						<div id="sharing">
							<div style="margin: 5px auto 10px auto;">

								&nbsp;&nbsp;


								<c:if test="${not empty user.name}">

									<a class="btn"
										href="../bookshelf/insert.action?user_id=${user.id}&book_id=${book_id}"
										id="myFav" target="_blank">收藏到我的书架</a>

								</c:if>

								<c:if test="${empty user.name}">


									<a class="btn" href="../user/tologin.action" id="myFav"
										target="_blank">收藏到我的书架</a>

								</c:if>










								<span id="favMsg"></span>
							</div>

						</div>
					</div>
				</div>
			</div>
			<div id="marc_format"
				class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
		</div>

		<div id="tabs2"
			class="tabs_M ui-tabs ui-widget ui-widget-content ui-corner-all">
			<ul
				class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
				<li
					class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a
					href="http://202.116.174.108:8080/opac/item.php?marc_no=0000722789#tab_item"
					title="item">预约申请</a></li>
				<li class="ui-state-default ui-corner-top"><a
					href="../books/appointment.action" title="login_preg"><span
						title="spinner"></span></a></li>

			</ul>
			<div id="tab_item"
				class="ui-tabs-panel ui-widget-content ui-corner-bottom">
				<div id="accordion"
					class="ui-accordion ui-widget ui-helper-reset ui-accordion-icons"
					role="tablist"></div>
				<table width="100%" border="0" align="left" cellpadding="2"
					cellspacing="0">
					<!-- <form id="appointment_form"  method="post"> -->
					<tbody>
						<tr class="greytext1" align="left">
							<td>书号</td>
							<td>可否预约</td>
							<td align="center">预约</td>
						</tr>
						<c:forEach items="${bookInfo}" var="i" varStatus="go">

							<tr align="left" class="whitetext">
								<td width="10%">${i.id}</td>
								<td width="35%"><c:choose>

										<c:when test="${i.status == 0}">


											<font color="red">可直接借阅无需预约！</font>

										</c:when>

										<c:when test="${i.status == 1}">


											<font color="red">已被借可预约！(保留天数6天)</font>

										</c:when>

										<c:otherwise>

											<font color="red">已被预约！</font>

										</c:otherwise>

									</c:choose></td>
								<td width="5%" align="center"><input type="hidden"
									name="callno1" value="I247.5%2F1749"> <input
									type="hidden" name="location1" value="SKK  "> <input
									type="hidden" name="pregKeepDays1" value="6"> <c:choose>
										<c:when test="${i.status != 1}">


											<input type="radio" name="check" value="${i.id}" disabled="">

										</c:when>
										<c:otherwise>
											<input type="radio" name="check" value="${i.id}">
										</c:otherwise>
									</c:choose></td>
							</tr>
						</c:forEach>

						<tr>

							<td colspan="7" align="right">
								<!-- \"cc('" + parameter1 + "','" + parameter2 + "','" + parameter3 + "','" + parameter4 + "')\" -->




								<input type="submit" id="appointment" class="btn btn-success"
								onclick="get()" value="执行预约">












							</td>
						</tr>
					</tbody>
					<!--     </form> -->
				</table>
				<div id="cadal_book"></div>

				<div
					style="color: rgb(212, 166, 57); border: 1px solid rgb(249, 242, 167); background-color: rgb(255, 252, 223); text-align: center; display: none;"
					id="spanItemMore">
					<strong>显示全部馆藏信息</strong><br>
				</div>
			</div>
			<div id="login_preg"
				class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
			<div id="shelf"
				class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
			<div id="review"
				class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
			<div id="related_lend"
				class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
			<div id="related_shelf"
				class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
		</div>





	</div>
	<div class="clear"></div>
	</div>
	</div>


	<div id="nrms-operation"></div>

	<script type="text/javascript">
	
	$("#asyn_link").load("../zplug/ajax_asyn_link.php?url=");
	//$("#cadal_book").load("cadal_book.php?isbn=9787115295767");
	
	function add2cart(){
		$.ajax({
   			  url: "ajax_bookcart.php?action=add&id=0000722789",
   			  success: function(html){
   			     $("#put2cart").html("已放入暂存架");
				 $("#put2cart").attr('disabled','disabled');
   				 $('#bookcartCount').html($.trim(html));
				 $('#cartCount').html($.trim(html));
   			  } 
    	});
	}

	function add2fav(){
		$("#dialog-fav").dialog("open");
	}
	
	function loadSameAuthorBook(id){
		$("#same_author_div").load("ajax_same_author.php?marc_no=0000722789");
	}
	
	function loadLikehoodBook(id){
		$("#likehood_book_div").load("ajax_likehood_book.php?marc_no=0000722789");
		$(id).click(function(){});
	}
	var rank = 1;
	function change_rating(rating){
		rank = rating;
		var w = 14*rating; 
		document.getElementById("div_rate").style.width = w+"px";
	}
	
	function back_white(){
		document.getElementById("div_rate").style.width = "0px";
	}

	function showMore(){
		$("#detail_more").show();
		$("#showMoreAnchor").hide();
	}

	function add2shelf(classid){
		$("#favMsg").load("../reader/book_shelf_ajax_addbook.php?classid=" + classid + "&marc_no=0000722789&time=" + new Date().getTime());
	}
	
	function scoreIt(marcNo){
		$.ajax({
   			  url: "ajax_score_it.php?marc_no=" + marcNo + "&rank=" + rank,
   			  success: function(html){
   			     $("#score").html(html);
   				 $('#div_rate').hide();
   				 $('#div_rate_star').hide();
   			  }
    	});
	}

	$(function(){
		$.getJSON("ajax_douban.php?isbn=9787115295767",function(json){
			$("#intro").html(json.summary );
			$("#author").html(json.author_intro);
			$("#book_img").attr("src",json.image);
			if(json.summary.length > 0 || json.author_intro.length>0 )
				$("#douban_content").show();
		});
	});
	
	document.title = "PHP网站开发实例教程(本科)";
</script>
	<div id="footer">
		<div id="copy">
			<p>图书检索系统&nbsp;&nbsp;</p>
			</p>
		</div>
	</div>

	<div
		class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable"
		tabindex="-1" role="dialog"
		aria-labelledby="ui-dialog-title-dialog-form"
		style="display: none; z-index: 1000; outline: 0px; position: absolute;">
		<div
			class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
			<span class="ui-dialog-title" id="ui-dialog-title-dialog-form">登录我的图书馆</span><a
				href="http://202.116.174.108:8080/opac/item.php?marc_no=0000722789#"
				class="ui-dialog-titlebar-close ui-corner-all" role="button"><span
				class="ui-icon ui-icon-closethick">close</span></a>
		</div>
		<div id="dialog-form" class="ui-dialog-content ui-widget-content">
			<form action="http://202.116.174.108:8080/reader/redr_verify.php"
				name="frm_login" method="POST">
				<input type="hidden" id="returnUrl" name="returnUrl" value="">
				<table width="95%" border="0" cellpadding="3" cellspacing="1">
					<tbody>
						<tr>
							<td align="right">用户名：</td>
							<td align="left"><input class="input" name="number"
								type="text" size="20" style="width: 150px"></td>
						</tr>
						<tr>
							<td align="right">密码：</td>
							<td align="left"><input class="input" name="passwd"
								type="password" size="20" style="width: 150px"></td>
						</tr>
						<tr>
							<td align="right">验证码：</td>
							<td align="left"><input id="captcha" class="input"
								name="captcha" type="text" size="20" style="width: 150px"
								placeholder="验证码"></td>
						</tr>
						<tr>
							<td align="right"></td>
							<td align="left" id="captcha_tips"><font size="2">请输入下面显示的内容</font><br>
							<img id="img" src="../resources/bookitem/captcha.php"></td>
						</tr>
						<tr>
							<td align="right">&nbsp;</td>
							<td align="left"><input type="Radio" name="select"
								value="cert_no" checked="checked">证件号 <input
								type="Radio" name="select" value="bar_no">条码号 <input
								type="Radio" name="select" value="email">Email</td>
						</tr>
						<tr>
							<td align="right">&nbsp;</td>
							<td align="left"><input type="submit" value="登录"></td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
		<div class="ui-resizable-handle ui-resizable-n"></div>
		<div class="ui-resizable-handle ui-resizable-e"></div>
		<div class="ui-resizable-handle ui-resizable-s"></div>
		<div class="ui-resizable-handle ui-resizable-w"></div>
		<div
			class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se"
			style="z-index: 1001;"></div>
		<div class="ui-resizable-handle ui-resizable-sw"
			style="z-index: 1002;"></div>
		<div class="ui-resizable-handle ui-resizable-ne"
			style="z-index: 1003;"></div>
		<div class="ui-resizable-handle ui-resizable-nw"
			style="z-index: 1004;"></div>
	</div>
	<div
		class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable"
		tabindex="-1" role="dialog"
		aria-labelledby="ui-dialog-title-dialog-fav"
		style="display: none; z-index: 1000; outline: 0px; position: absolute;">
		<div
			class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
			<span class="ui-dialog-title" id="ui-dialog-title-dialog-fav">添加到我的书架</span><a
				href="http://202.116.174.108:8080/opac/item.php?marc_no=0000722789#"
				class="ui-dialog-titlebar-close ui-corner-all" role="button"><span
				class="ui-icon ui-icon-closethick">close</span></a>
		</div>
		<div id="dialog-fav" class="ui-dialog-content ui-widget-content">
			收藏到： <select id="favSel" name="favSel">
			</select> <a style="color: blue"
				href="http://202.116.174.108:8080/reader/book_shelf_man.php">管理书架</a>
		</div>
		<div class="ui-resizable-handle ui-resizable-n"></div>
		<div class="ui-resizable-handle ui-resizable-e"></div>
		<div class="ui-resizable-handle ui-resizable-s"></div>
		<div class="ui-resizable-handle ui-resizable-w"></div>
		<div
			class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se"
			style="z-index: 1001;"></div>
		<div class="ui-resizable-handle ui-resizable-sw"
			style="z-index: 1002;"></div>
		<div class="ui-resizable-handle ui-resizable-ne"
			style="z-index: 1003;"></div>
		<div class="ui-resizable-handle ui-resizable-nw"
			style="z-index: 1004;"></div>
		<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
			<div class="ui-dialog-buttonset">
				<button type="button"
					class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
					role="button" aria-disabled="false">
					<span class="ui-button-text">确定</span>
				</button>
				<button type="button"
					class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
					role="button" aria-disabled="false">
					<span class="ui-button-text">取消</span>
				</button>
			</div>
		</div>
	</div>
</body>
</html>